package com.atguigu.util.homework2;

/**
 * @author caesar
 * @date 2025/7/4
 * @apiNote
 */
public class MaxFinder {
    public static int findMax(int[] arr)
    {
        int max = arr[0];
        for (int i = 1; i < arr.length; i++)
        {
            if (max < arr[i])
            {
                max = arr[i];
            }
        }
        return max;
    }
}
